package cn.glutnn.subject.application.convert;

import cn.glutnn.subject.application.dto.SubjectInfoDTO;
import cn.glutnn.subject.domain.enyity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * Author:   msh
 * Date:     2024/11/26 下午7:05
 * Description:
 */

@Mapper
public interface SubjectInfoDTOConverter {
    SubjectInfoDTOConverter INSTANCE = Mappers.getMapper(SubjectInfoDTOConverter.class);

    SubjectInfoDTO convertBoToDto(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO convertDtoToBo(SubjectInfoDTO subjectInfoDTO);

    List<SubjectInfoDTO> convertBoListToDtoList(List<SubjectInfoBO> subjectInfoBOList);

    List<SubjectInfoDTO> convertBOToDTOList(List<SubjectInfoBO> boList);
}
